package com.empire.module.member.controller.admin.warninggather.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 聚集预警主表（1条记录对应1次聚集事件）新增/修改 Request VO")
@Data
public class WarningGatherSaveReqVO {

    @Schema(description = "聚集预警ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11457")
    private Long id;

    @Schema(description = "预警条件ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "18678")
    @NotNull(message = "预警条件ID不能为空")
    private Long warningConditionId;

    @Schema(description = "聚集条件名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "聚集条件名称不能为空")
    private String gatherName;

    @Schema(description = "聚集开始时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "聚集开始时间不能为空")
    private LocalDateTime startTime;

    @Schema(description = "聚集结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "聚集结束时间不能为空")
    private LocalDateTime endTime;

}